#include <stdio.h>
#include <stdlib.h>

void print(char *s, int a[], int n) {
    printf("%s: ", s);
    for (int i = 0; i < n; i++) {
        printf("%d ", a[i]);
    }
    printf("\n");
}

int main() {
    int a[10];
    int b[10] = {0};
    int *c = (int *)malloc(10 * sizeof(int));
    int *d = (int *)calloc(10, sizeof(int));
    print("a", a, 10);
    print("b", b, 10);
    print("c", c, 10);
    print("d", d, 10);
    free(c);
    free(d);
    return 0;
}